package com.xixisleep.yebackendjudgeservice;

import com.xixisleep.yebackendjudgeservice.rabbitmq.InitRabbitMq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan("com.xixisleep")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.xixisleep.yebackendserviceclient.service")
public class YeBackendJudgeServiceApplication {

    public static void main(String[] args) {
        //初始化消息队列
        InitRabbitMq.doInit();
        SpringApplication.run(YeBackendJudgeServiceApplication.class, args);
    }

}
